-
Notifications
You must be signed in to change notification settings - Fork 8k
WIP: add zephyr posix aep choice rev 2 #94876
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Closed
cfriedt
wants to merge
11
commits into
zephyrproject-rtos:main
from
cfriedt:add-zephyr-posix-aep-choice-v2
Closed
WIP: add zephyr posix aep choice rev 2 #94876
cfriedt
wants to merge
11
commits into
zephyrproject-rtos:main
from
cfriedt:add-zephyr-posix-aep-choice-v2
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
612a0f9
to
981c75a
Compare
12436ee
to
e934289
Compare
pwd.c and grp.c both had incorrect preprocessor guards around the stubs that they were implementing. Functions were surrounded by ```cpp .. ``` Which is not at all accurate, since that subprofiling option group is `(CONFIG_)POSIX_SYSTEM_DATABASE_R`.D Remove the guards, since they are invalid anyway, and at most an application will link properly. Signed-off-by: Chris Friedt <[email protected]>
Rather than duplicating limit logic in several places, de-duplicate it and centralize preprocessor checks in posix_limits.h . Signed-off-by: Chris Friedt <[email protected]>
Newlib does not seem to define a number of mandatory POSIX limits (e.g. minimum values). Include Zephyr's POSIX definitions in an override of Newlib's limits.h (when the appropriate application conformance macro is provided). Signed-off-by: Chris Friedt <[email protected]>
Use the realtime clock, since that is always guaranteed to be available with _POSIX_TIMERS. Signed-off-by: Chris Friedt <[email protected]>
Define _POSIX_TIMERS=200809L when so configured. This change is required to ensure that Newlib provides the necessary POSIX timer API definitions in toolchain headers. Signed-off-by: Chris Friedt <[email protected]>
e934289
to
796eaf3
Compare
To avoid conflicts between the C library's time.h and posix time.h, use an "override" header when necessary for C libraries that do not themselves provide POSIX definitions in time.h . This will allow non-POSIX C libraries to take advantage of Zephyr's implementation.
The eventfd configuration does not need to be so deeply nested within POSIX since it does not depend on POSIX completely. Signed-off-by: Chris Friedt <[email protected]>
Separate the POSIX implementation into two categories: - Extensions to ISO C - System Interfaces The first category include standalone functions that generally do not require OS support or depend on any other features within the POSIX specification. The Option Groups that comprise this category include - POSIX_C_LIB_EXT: e.g. strnlen(), fnmatch() - POSIX_C_LANG_SUPPORT_R: e.g. gmtime_r(), strtok_r() The second category includes the majority of other POSIX Option Groups that do require OS support. The latter group may also be categorized generally as being NATIVE_LIBC_INCOMPATIBLE, although that might eventually become more granular. Signed-off-by: Chris Friedt <[email protected]>
Add a custom Zephyr POSIX subprofile specifically for enabling the default features that Zephyr requires as per the coding guidelines. Signed-off-by: Chris Friedt <[email protected]>
Default POSIX_AEP_CHOICE to POSIX_AEP_CHOICE_ZEPHYR Signed-off-by: Chris Friedt <[email protected]>
Add zephyr-keep-sorted-start and zephyr-keep-sorted-stop comments. Signed-off-by: Chris Friedt <[email protected]>
796eaf3
to
8c52fbe
Compare
|
moved back to #88547 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This is just a work in progress to see if the POSIX AEP PR will pass with additional changes to time.h